import matplotlib
matplotlib.use('Qt4Agg')
matplotlib.rcParams['backend.qt4']='PySide'
import matplotlib.pyplot as plt
plt.style.use('ggplot')

from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg
from matplotlib.figure import Figure


class EQSignal_FigureCavas(FigureCanvasQTAgg):
    """docstring for EQSignal_FigureCavas"""
    def __init__(self, parent=None):
        figure = Figure(tight_layout=True)
        # figure.subplots_adjust(left=0.1,right=0.98,bottom=0.1,top=0.98)
        super(EQSignal_FigureCavas, self).__init__(figure)
        self.setParent(parent)

    def getFigure(self):
        return self.figure